<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>this</title>
</head>
<body>
    <script>
        // function fun()
        // {
        //      console.log(this)
        // }

        // fun();

        // var obj = function()
        // {
        //     console.log(this)
        // }

        // console.log(typeof obj);

        // var obj = 
        // {
        //     name:"cq",
        //     age:11,
        //     runing:function()
        //     {
        //         console.log(this);
        //     }
        // }

        // obj.runing();

        var info =  
        {
            name:"cq",
            age:18,
            height:1.88,
            getName:function()
            {
                console.log(this.name);
            },
            getAge:function()
            {
                console.log(this.age);
            },
            getHeight:function ()
            {
                console.log(this.height)
            }
        }

        info.getName();
        info.getAge();
        info.getHeight();
    </script>
</body>
</html>